package com.daiqee.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.baomidou.mybatisplus.enums.IdType;
import com.daiqee.annotations.DateField;
import com.fasterxml.jackson.annotation.JsonFormat;

@TableName
public class Proposal extends LogicDeleteFlag{
	
	@TableId(type = IdType.AUTO)
    private Integer proposalId;			//id

    private Integer proposalAccessId;	//对应账号id

    private String proposalTheme;		//主题

    @TableField(strategy = FieldStrategy.NOT_EMPTY)
    private String proposalPeople;		//发布人

    @TableField(strategy = FieldStrategy.NOT_EMPTY)
    private String proposalState;		//意见审核状态

    @DateField
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date proposalDate;			//发布日期

    private String proposalDetail;		//意见详细内容
    
    private String proposalReply;		//回复内容

    public Integer getProposalId() {
        return proposalId;
    }

    public void setProposalId(Integer proposalId) {
        this.proposalId = proposalId;
    }

    public Integer getProposalAccessId() {
        return proposalAccessId;
    }

    public void setProposalAccessId(Integer proposalAccessId) {
        this.proposalAccessId = proposalAccessId;
    }

    public String getProposalTheme() {
        return proposalTheme;
    }

    public void setProposalTheme(String proposalTheme) {
        this.proposalTheme = proposalTheme == null ? null : proposalTheme.trim();
    }

    public String getProposalPeople() {
        return proposalPeople;
    }

    public void setProposalPeople(String proposalPeople) {
        this.proposalPeople = proposalPeople == null ? null : proposalPeople.trim();
    }

    public String getProposalState() {
        return proposalState;
    }

    public void setProposalState(String proposalState) {
        this.proposalState = proposalState == null ? null : proposalState.trim();
    }

    public Date getProposalDate() {
        return proposalDate;
    }

    public void setProposalDate(Date proposalDate) {
        this.proposalDate = proposalDate;
    }
    
    public String getProposalDetail() {
        return proposalDetail;
    }

	public void setProposalDetail(String proposalDetail) {
        this.proposalDetail = proposalDetail == null ? null : proposalDetail.trim();
    }

	public String getProposalReply() {
		return proposalReply;
	}

	public void setProposalReply(String proposalReply) {
		this.proposalReply = proposalReply;
	}
}